<?php

namespace app\data\model;

use think\admin\Model;

/**
 * 商城商品属性
 * Class ShopGoods
 * @package app\data\model
 */
class GoodsAttribute extends Model
{
    protected $table = "goods_attribute";

    public function values(){
        return $this->hasMany(GoodsAttributeValue::class,'attribute_id');
    }

    public function cates(){
        return $this->belongsTo(GoodsCate::class,'cate_id');
    }
}